package com.lianniu.web.demand.dao;

import com.lianniu.web.demand.vo.DemandVo;
import com.lianniu.web.product.model.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DemandDao {
    int deleteByPrimaryKey(Long id);

    int insert(DemandVo record);

    int insertSelective(DemandVo record);

    DemandVo selectByPrimaryKey(Long id);

    List<DemandVo> findSource(@Param("userId")String userId,@Param("page")Page page);

    int findSourceCount(@Param("userId")String userId);

    List<DemandVo> selectByUserId(@Param("userId")Long userId,@Param("page")Page page);

    int selectByUserIdCount(@Param("userId") Long userId);

    int updateByPrimaryKeySelective(DemandVo record);

    int updateByPrimaryKey(DemandVo record);

    int increaseSupplyCount(@Param("id")Long id);

    int increaseClickCount(@Param("id")Long id );

}